package com.mallcloud.mall.admin.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel(value = "SysPost", description = "岗位信息表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_post", autoResultMap = true)
public class SysPost extends BaseModel {
	private static final long serialVersionUID = 1L;

	@TableId(value = "post_id", type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "岗位ID")
	private Long postId;

	@NotBlank(message = "岗位编码不能为空")
	@ApiModelProperty(value = "岗位编码")
	private String postCode;

	@NotBlank(message = "岗位名称不能为空")
	@ApiModelProperty(value = "岗位名称")
	private String postName;

	@NotNull(message = "排序值不能为空")
	@ApiModelProperty(value = "岗位排序")
	private Integer postSort;

	@ApiModelProperty(value = "岗位描述")
	private String remark;

}
